package com.team3.project.dao;

import java.util.List;

import com.team3.project.exception.LeaveNotFoundException;
import com.team3.project.model.LeaveRecord;

public interface LeaveDAO {

	public abstract void save(LeaveRecord leaveRecord);

	public abstract void update(LeaveRecord leaveRecord) throws LeaveNotFoundException;

	public abstract void delete(LeaveRecord leaveRecord) throws LeaveNotFoundException;
	
	public abstract void deleteByRefNo(int RefNO) throws LeaveNotFoundException;

	public abstract LeaveRecord findByRefNo(int refNO) throws LeaveNotFoundException;

	public abstract List<LeaveRecord> findAll();

}